<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page pageEncoding="UTF-8"%>

<html>
<head>
	<style type="text/css">
		body {
			font-family: "Arial", "Helvetica";
		}
  	</style>
  	
  	<link rel="stylesheet" type="text/css" href="css/Core.css" />

	<!-- 	
	<link rel="icon" href="favicon.png" type="image/x-icon" />  
	<link rel="shortcut icon" href="favicon.png" type="image/x-icon" />
	 -->
	
	<title>Login</title>
</head>

<body onload="document.f.j_username.focus();">
	<div class="login-box">
		<h2>Sales Login</h2>

		<%-- this form-login-page form is also used as the
	         form-error-page to ask for a login again.
	         --%>
		<c:if test="${not empty param.login_error}">
			<span class="span-login-error">
				<c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />
			</span>
		</c:if>
		<c:if test="${empty param.login_error}">
			<span>
				Please enter your your username and password. 
			</span>
		</c:if>
		
		<br/><br/>
		
		<form name="f" action="<c:url value='j_spring_security_check'/>"
			method="POST">
			<table style="width: 400px; margin-left: auto; margin-right: auto;">
				<tr>
					<td class="td-login-label">Username</td>
					<td class="td-login-field"><input type='text' name='j_username' class="tf-login-field" style="width: 250;"/></td>
				</tr>
				<tr>
					<td class="td-login-label">Password</td>
					<td class="td-login-field"><input type='password' name='j_password' class="tf-login-field" style="width: 250;"/></td>
				</tr>
				<!-- 
				<tr>
					<td class="td-login-label" colspan="2"><input type="checkbox" name="_spring_security_remember_me">&nbsp;Remember Me</td>
				</tr>
				 -->
				<tr>
					<td colspan="2"><br/></td>
				</tr>
				<tr>
					<td class="td-login-submit" colspan='2'><input class="btn-submit" name="submit" type="submit" title="LOG IN" value="LOG IN" /></td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>
